<?php if(!empty($user)){?>
<div class="sebelumjud">
                <div class="jodol"><?php echo $user['NAMA']?> —Routine Task</div>
</div>

<div class="clear"></div>
        <div id="jumat">
                <div id="last">
                        <a href="<?php echo base_url().'progress/progress_con/todo_personal_occasional/'.$user['ID']?>">Occasional</a>
                        <a href="<?php echo base_url().'progress/progress_con/todo_personal_routine/'.$user['ID']?>">Routine</a>
                </div>
                <div id="pic"><img src="<?php echo $user['FOTO']?>" /></div>
                <div id="samping2">
                        <div  class="todoh8">
                            <?php
                                if(!empty($user['ROUTASK'])){
                                    echo '<div class="routine">Routine Task</div>
                                <ul>';
                                    for($i=0;$i<count($user['ROUTASK']);$i++){
                                        echo '
                                            <li>'.$user['ROUTASK'][$i]['ROU_TASK'].'</li>
                                            ';
                                    }
                                    echo '</ul>';
                                }
                            ?>

                        </div>
                        <div class="clear"></div>
                </div>

        </div><!---end div jumat --->
        <div class="clear"></div>
        <?php }?>